package com.example.service;

import org.noear.solon.annotation.*;

@Controller
@Mapping("/api/v1")
public class ServiceController {
    @Inject
    private IService service;
    @Mapping("/hello1")
    @Post
    public String hello1(LoginRequest loginRequest){//@Param("identifier") String identifier,@Param("password") String password){
        return service.hello1(loginRequest);
    }

    @Mapping("/hello2")
    @Post
    public String hello2(String parameter1, String parameter2){//@Param("identifier") String identifier,@Param("password") String password){
        return service.hello2(parameter1, parameter2);
    }
    @Mapping("/hello3")
    @Post
    public String hello3(String parameter1){//@Param("identifier") String identifier,@Param("password") String password){
        return service.hello3(parameter1);
    }
}
